﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DATA;
namespace BUS
{
   public class ProductTypeBUS
    {
       public List<ProductType> GetAllProductTypes()
        {
           ProductTypeREP acc = new ProductTypeREP();
           return acc.GetProductTypes();
        }
        public List<ProductType> GetActiveProductType()
        {
           ProductTypeREP acc = new ProductTypeREP();
            return acc.GetActiveProductType();
        }

        public bool AddProductType(ProductType newAccount)
        {
           ProductTypeREP acc = new ProductTypeREP();
            return acc.AddProductType(newAccount);
        }
        public void Delete(int Accountid)
        {
           ProductTypeREP acc = new ProductTypeREP();
            acc.deleteProductType(Accountid);
        }
        public bool UpdateProductType(ProductType accountup)
        {
           ProductTypeREP acc = new ProductTypeREP();
            return acc.UpdateProductType(accountup);


        }
    }
}
